<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<link rel="stylesheet" href='./css/taskstyle.css' />
<link rel="stylesheet" href='./css/nav.css' />
<link rel="stylesheet" href='./css/main.css' />
<jsp:include page="/commonPages/admin-meta.jsp" flush="true" />
<!-- CSS files -->
<jsp:include page="/commonPages/admin-style.jsp" flush="true" />
<style type="text/css">

/*a  upload */
.a-upload1 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload1  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload1:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}

.a-upload2 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload2  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload2:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}

.a-upload3 {
	padding: 4px 10px;
	height: 30px;
	line-height: 20px;
	position: relative;
	cursor: pointer;
	color: #1E88C7;
	background: white;;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	display: inline-block;
	*display: inline;
	*zoom: 1
}

.a-upload3  input {
	position: absolute;
	font-size: 100px;
	right: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity = 0);
	cursor: pointer
}

.a-upload3:hover {
	color: #444;
	background: #eee;
	border-color: #ccc;
	text-decoration: none
}
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>

<script type="text/javascript">
    </script>
<script>
	var taskType = "${taskType}";
	$("#" + taskType).attr("class", "selected");
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>





</head>

<body>
	<div id="wrapper">

		<!-- Navigation -->
		<jsp:include page="/commonPages/admin-navigator.jsp" flush="true" />


		<div id="page-wrapper">

			<div id="main">

				<div class="where">
					<ul>
					</ul>
				</div>

				<div class="sort_switch">
					<ul id="TabsNav">
						<h3>我的材料</h3>
					</ul>
				</div>

				<div id="tagContent0" class="sort_content">

					<div class="currency_area hue9">
					
					<form method="post" action="./process/complete"
										id="auditForm" enctype="multipart/form-data">
						<div class="the_content">
							<table class="tableHue2" width="100%" border="1"
								bordercolor="#dddddd" cellspacing="0" cellpadding="0">
								<tbody>
									<c:forEach items="${programs}" var="program">
										<tr>

											<td width="15%" class="title1">项目名称：</td>
											<td class="left">${program.proName }</td>
										</tr>
										<tr>
											<td width="15%" class="title1">申请类型：</td>
											<td class="left">${program.type }</td>
										</tr>
									</c:forEach>

									<tr>
										<td width="15%" class="title1">申请材料：</td>
										<td class="left">

											<table>

												<c:forEach items="${userAttachments}" var="userAttachment">
													<tr>
														<td>${userAttachment.name}<a
															href="./process/downloadFiles?url=${userAttachment.url}&filename=${userAttachment.name}">下载</a>
														
														</td>
													</tr>
													
												</c:forEach>

											</table>
										</td>
									</tr>
									<tr>
										<td width="15%" class="title1">行政部门审核结果：</td>
										<td class="left">

											<table>

												<c:forEach items="${departmentAttachments}"
													var="departmentAttachment">
													<tr>
														<td>${departmentAttachment.name}<a
															href="./process/downloadFiles?url=${departmentAttachment.url}&filename=${departmentAttachment.name}">下载</a></td>
													</tr>
												</c:forEach>

											</table>
										</td>
									</tr>
										<tr>
										<td width="15%" class="title1">行政部门审核意见：</td>
										<td class="left">

											<table>

												<c:forEach var="comment" items="${comments}">
									<tr>
										<td>${comment.userName}：${comment.content}</td>
									</tr>
									
									</c:forEach>
											</table>
										</td>
									</tr>
										<input type="hidden" value="" id="buttonID"name = "buttonID" />
										<input type="hidden" value="${taskId}" name="taskId" />
										<input type="hidden" value="${programName }" name="programName" />
										<input type="hidden" value="${programType }" name="programType" />
										<input type="hidden" value="${userId }" name="userId" />
										
										
										
										
								</tbody>
							</table>

						</div>
					</div>

					<div id="submit">

						<div class="_confirm">

							<div>
							
							<c:if test="${param.type == 4}">	
								<input type="submit" value="请重新申请" />
								</c:if>
							</div>
							
							
						</div>





					</div>


				</div>
			</div>
			</form>
		</div>
		<!-- /#page-wrapper -->

	</div>
	<!-- /#wrapper -->

	<!-- JS files -->
	<jsp:include page="/commonPages/admin-script.jsp" flush="true" />

	<script>
var ButtonID = null;

	function cancelAdjust() {
		document.getElementById("auditForm").action = "process-cancelAdjust.action";
		document.getElementById("auditForm").submit();
	}
	$(".a-upload1").on("change","input[type='file']",function(){
		
	    var filePath=$(this).val();
	    
	     $("#fileerrorTip1").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $("#showFileName1").html(fileName);
	   
	})
	$(".a-upload2").on("change","input[type='file']",function(){
		
	    var filePath=$(this).val();
	    
	     $("#fileerrorTip2").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $("#showFileName2").html(fileName);
	   
	})
	$(".a-upload3").on("change","input[type='file']",function(){
		
	    var filePath=$(this).val();
	    
	     $("#fileerrorTip3").html("").hide();
	        var arr=filePath.split('\\');
	        var fileName=arr[arr.length-1];
	        $("#showFileName3").html(fileName);
	   
	})
	$.ajax({
		url: './process/processComplete',
		type:'json',
		data:{
			buttonID:ButtonID,
		}
	});

function showID(obj){
		ButtonID = obj.id;
		document.getElementById('buttonID').value= ButtonID;
	}
	
	
	
	
</script>

</body>


</html>
